#include"SL.h"
SeqList s;
void test5() {
	SeqListPushFront(&s, 4);
	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 7);
	SeqListPushFront(&s, 8);
	SeqListPushFront(&s, 5);
	SeqListPushFront(&s, 6);

	SeqListInsert(&s, 1, 1);

	SeqListPrint(&s);

	SeqListErase(&s, 1);

	SeqListPrint(&s);

}
void test4() {
	SeqListPushFront(&s, 4);
	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 7);
	SeqListPushFront(&s, 8);
	SeqListPushFront(&s, 5);
	SeqListPushFront(&s, 6);

	SeqListPrint(&s);

	int ret = SeqListFind(&s, 2);
	assert(ret > 0);
	printf("%d ", s.a[ret - 1]);
}

void test3() {
	SeqListPushFront(&s, 4);
	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 7);
	SeqListPushFront(&s, 8);
	SeqListPushFront(&s, 5);
	SeqListPushFront(&s, 6);

	SeqListPrint(&s);

	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);
	/*SeqListPopFront(&s);
	SeqListPopFront(&s);*/

	SeqListPrint(&s);
}
void test2() {
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);

	SeqListPrint(&s);

	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s); 
	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);

	SeqListPrint(&s);
}
void test1() {
	SeqListInit(&s);

	SeqListPrint(&s);

	SeqListDestroy(&s);

}
int main() {
	test5();
}